
const options = {
  grid: {
    top: '5%',
    left: '0',
    right: '3%',
    bottom: '2%',
    containLabel: true
  },
  animation: false,
  xAxis: {
    type: 'category',
    data: ['现在', '小时', '2小时'],
    axisLabel: {
      interval: 0, // 强制显示所有标签
    }
  },
  yAxis: {
    axisLabel:{
      formatter:function(value,index){
        if(value>=25){
          return '大雨';
        }
        if(value>=10){
          return '中雨';
        }
        if(value>0){
          return '小雨'
        }
        return '暴雨';
      }
    },
    type: 'value',
    axisLine: { onZero: false, show: false },
    axisTick: {
      show: true
    }, min: 0, max: 50,
    splitLine: { lineStyle: { color: "#409EFF" } }
  },
  series: [
    {
      data: [5, 18, 30],
      type: 'line'
    }
  ]
};
export default options